<?php
include 'Animation.php';
include 'AniCavas.php';

$x = $y = 0;

$animation = new Animation();
$animation->addLegend("bgs/sidebar.png");
$animation->setTitleHeight($height = 20);
$animation->addTitlebar("bgs/titlebar.png");
$animation->addBackground($animation->readListFile("bglist.csv", $header = true));
$animation->addForeground($animation->readListFile("fglist.csv"));
$animation->setBackgroundColor("white");
$animation->addRaster($animation->readListFile("pngfilelist.csv"), $annotateX = 512, $annotateY = 15);
$animation->addImage("bgs/logo.png", 520, 480);
$animation->addAnnotate("this is new hello world", 250, 15);
$animation->setDelay(50);
//$animation->saveFrame($idx = 1, "testSaveFrame1.png");
//$animation->saveFrame($idx = 2, "testSaveFrame2.png");
$animation->makeWmv();
?>
